﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GoodsInvoicing.Model.UserRole;

namespace GoodsInvoicing.Views.View
{
    public interface IUserListForm
    {
        #region 事件
        /// <summary>
        /// 初始化列表数据集
        /// </summary>
        event EventHandler<EventArgs> UserListFormLoad;

        /// <summary>
        /// 查询用户名事件
        /// </summary>
        event EventHandler<EventArgs> SearchButtonClick;

        /// <summary>
        /// 删除用户
        /// </summary>
        event EventHandler<EventArgs> UserDeleteClick;

        /// <summary>
        /// 关闭Form
        /// </summary>
        event EventHandler<EventArgs> UserListFormClose;
        #endregion

        #region 属性
        IList<GI_User> UserList { get; set; }

        string SearchUserName { get; set; }//所要查询的用户名

        int DeleteUserID { get; set; }//所要删除用户ID
        #endregion

        #region 方法
        /// <summary>
        /// 显示用户新增Form
        /// </summary>
        void ShowUserAddForm();

        /// <summary>
        /// 显示用户保存Form
        /// </summary>
        void ShowUserSaveForm();
        #endregion
    }
}
